package com.example.questionnaire.pojo.DO;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.HashMap;


@Data
@ApiModel("填空题类")
public class FillInQuestion {

    @TableId(type = IdType.UUID)
    @ApiModelProperty("id")
    private String id;

    @ApiModelProperty("问卷id")
    private String formid;

    @ApiModelProperty("题型")
    private int questionType;

    @ApiModelProperty("题号")
    private String subjectId;

    @ApiModelProperty("题目")
    private String title;

    @ApiModelProperty("是否必答")
    private int isMustAnswer;

    @ApiModelProperty("是否开启填写提示")
    private int isWritePrompt;

    @ApiModelProperty("提示信息")
    private String tipContent;

    @ApiModelProperty("内容的属性")
    private String attribute;

    @ApiModelProperty("是否开启多行文本")
    private int multilineText;

    @ApiModelProperty("是否不允许重复")
    private int isNotAllowedToRepeat;

    @ApiModelProperty("是否开启字数限制")
    private int isSpaceConstraints;

    @ApiModelProperty("字数限制最大值")
    private String maxNum;

    @ApiModelProperty("字数限制最小值")
    private String minNum;

    @ApiModelProperty("跳题id")
    private String questionsJumpItems;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)//在插入的时候自动填充
    private Date createTime;
    @ApiModelProperty("最后更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)////在插入和更新的时候自动填充
    private Date modifiedTime;
    @ApiModelProperty("逻辑删除")
    @TableLogic
    private Integer deleted;
    public FillInQuestion() {
        questionType = 3;
    }

}
